package com.patterns.templateMethod.hummerModle2;

/**
 * Created by Xiao Yiyun on 2017/4/19.
 */
public class HummerH2 extends HummerModel {
    public void start() {
        System.out.println("H2启动。。。。。");
    }

    public void stop() {
        System.out.println("H2停车。。。。。");
    }

    public void alarm() {
        System.out.println("H2鸣笛。。。。。");
    }

    public void engine() {
        System.out.println("H2轰鸣。。。。。");
    }

    protected boolean isAlarm() {
        return false;
    }
}